//
//  YBBLEAdvertisementData.h
//  youonBikePlanA
//
//  Created by LPC on 2017/11/22.
//  Copyright © 2017年 audi. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    BLE_Close = 1, //关上
    BLE_snapClose, //临时
    BLE_Open,      //打开
} BLEState;

@interface YBBLEAdvertisementData : NSObject
//解析数据
@property (nonatomic ,copy)NSString *kCBAdvDataIsConnectable;
@property (nonatomic ,copy)NSString *kCBAdvDataLocalName;
@property (nonatomic ,copy)id kCBAdvDataManufacturerData;
@property (nonatomic ,strong ,readonly)NSArray *kCBAdvDataServiceUUIDs;

//custom
///版本号
@property (nonatomic ,strong ,readonly)NSString *yb_version10;
@property (nonatomic ,strong ,readonly)NSString *yb_version16;

///温度
@property (nonatomic ,strong ,readonly)NSString *yb_temperature;
///电量
@property (nonatomic ,strong ,readonly)NSString *yb_power;
///锁状态     //bb再装坏车 cc不在庄还车 dd零食停车 aa锁车
@property (nonatomic ,copy ,readonly)NSString *yb_state;
@property (nonatomic ,assign) BLEState formatState;
@property (nonatomic)BOOL autoReturn;
///4.0上传给服务器的锁信息
@property (nonatomic ,strong)NSString *report;

//必须手动调用此还车custom的属性才会有值
- (void)parsing;
@end
